package com.wly.frame.mvvm.base

import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel

/**
 * author: wangliyun
 * date: 2022/3/22
 * description:
 */
open class BaseViewModel:ViewModel() {

    val reqStatusLiveData = MutableLiveData<Any>()

    val loadingLiveData = MutableLiveData<Any>()

    fun onFail(errorCode:Int , errorMsg:String){
        //TODO:设置失败的Bean
//        reqStatusLiveData.postValue()
    }

    //TODO:设置Loading的Bean
    fun onLoading(isClose:Boolean,message:String){

    }

}